package hotel.compare.oversea.mapper.master;

import hotel.base.oversea.repository.MyMapper;
import hotel.compare.oversea.entity.master.SpiderHotelLog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
*@Description: 爬取携程酒店记录
*@Author: Zhang·jz
*@date: 2020/9/11
*/
public interface SpiderHotelLogMapper extends MyMapper<SpiderHotelLog> {

    int updateSpiderHotelLogIsAgent(@Param("id") String id);

    /**
     * 根据酒店子/母 酒店id 获取酒店名称
     * @param hotelId
     * @return
     */
    String findSwitchsHotelNameByid(@Param("hotelId") String hotelId);


    List<SpiderHotelLog> spiderHotelAll();


    /**
    *@Description: 所有校验通过后的酒店
    *@Author: Zhang·jz
    *@date: 2020/9/21
    */
    List<SpiderHotelLog> tripSpiderHotelByCompareHotel();

    /**
     *@Description: 所有校验通过后的酒店是代理
     *@Author: Zhang·jz
     *@date: 2020/9/21
     */
    List<SpiderHotelLog> tripSpiderHotelByCompareHotelIsAgent();

    /**
     *@Description: 所有校验通过后的酒店不是代理
     *@Author: Zhang·jz
     *@date: 2020/9/21
     */
    List<SpiderHotelLog> tripSpiderHotelByCompareHotelIsNotAgent();
}
